<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>Testing a Device</title><meta name="generator" content="DocBook XSL Stylesheets V1.76.1"><meta name="keywords" content="Intellon, Atheros, Qualcomm, HomePlug, powerline, communications, INT6000, INT6300, INT6400, AR7400, AR7420"><link rel="home" href="index.html" title="Qualcomm Atheros Open Powerline Toolkit"><link rel="up" href="ch05.html" title="Chapter 5.  Procedures"><link rel="prev" href="ch05s10.html" title="Starting a Device"><link rel="next" href="ch05s12.html" title="Programming NVRAM"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">
			Testing a Device
			</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ch05s10.html">Prev</a> </td><th width="60%" align="center">Chapter 5. 
		Procedures 
		</th><td width="20%" align="right"> <a accesskey="n" href="ch05s12.html">Next</a></td></tr></table><hr></div><div class="section" title="Testing a Device"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="procedure-testing-device"></a>
			Testing a Device
			</h2></div></div></div><p>
			When the <span class="application">Bootloader</span> is running, it is possible to perform systematic diagnostic testing by downloading and executing a variety of small programs, called <span class="quote">“<span class="quote">applets</span>”</span>. A collection of applets can be found in the toolkit <code class="filename">Applets</code> folder. Applet <a class="ulink" href="toolkit.html#applet-files" target="_top">manpages</a> describe the purpose of each one. Some applets are more useful than others. Start by reading the <a class="ulink" href="applets.7a.html" target="_top">applets</a> manpage.		
			</p><p>
			Program <a class="ulink" href="int6ktest.7.html" target="_top">int6ktest</a> can be used to sequentially download and execute a series of applets. Applets have evolved over time and some are more useful or informative than others. Newer applets report progress and errors on the console. Older applets report progress or errors by flashing the onboard <acronym class="acronym">LED</acronym>s. This means of testing cannot be used after the flash memory has been programmed unless you erase, corrupt or remove the flash.
			</p><pre class="screen">
# int6ktest -i eth4 connection.nvm memctl.nvm marchloop.nvm
eth4 00:B0:52:00:00:01 Write Memory (00000000:32)
eth4 00:B0:52:00:00:01 Wrote connection.nvm
eth4 00:B0:52:00:00:01 Start connection.nvm (0)
eth4 00:B0:52:00:00:01 Write Memory (00001000:664)
eth4 00:B0:52:00:00:01 Wrote connection.nvm
eth4 00:B0:52:00:00:01 Start connection.nvm (1)
eth4 00:B0:52:00:00:01 Write Memory (00000040:6076)
eth4 00:B0:52:00:00:01 Wrote memctl.nvm
eth4 00:B0:52:00:00:01 Start memctl.nvm (0)
eth4 00:B0:52:00:00:01 Write Memory (00001000:2212)
eth4 00:B0:52:00:00:01 Wrote marchloop.nvm
eth4 00:B0:52:00:00:01 Start marchloop.nvm (0)
eth4 00:B0:52:00:00:01 0x00 March2 test - Pass
</pre><p>
			This example uses program <a class="ulink" href="int6ktest.7.html" target="_top">int6ktest</a> to download and execute applets <a class="ulink" href="connection.7a.html" target="_top">connection.nvm</a>, <a class="ulink" href="memctl.7a.html" target="_top">memctl.nvm</a> and <a class="ulink" href="marchloop.7a.html" target="_top">marchloop.nvm</a> to the powerline device on host interface <span class="quote">“<span class="quote">eth4</span>”</span>. The first applet checks circuit board connections to memory and reports progress and errors by flashing onboard <acronym class="acronym">LED</acronym>s. The second configures the <acronym class="acronym">SDRAM</acronym> controller and exits without any indication. The third performs a systematic test of <acronym class="acronym">SDRAM</acronym> and reports progress and errors on the console. In this case the test passed.
			</p><p>
			See programs <a class="ulink" href="amptest.7.html" target="_top">amptest</a> and <a class="ulink" href="plctest.7.html" target="_top">plctest</a> for updated versions of this program for use with <span class="productname">AR7400</span>™ and <span class="productname">QCA7420</span>™ chipsets.
			</p></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="ch05s10.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="ch05.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="ch05s12.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">
			Starting a Device
			 </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> 
			Programming NVRAM  
			</td></tr></table></div></body></html>
